<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Reports {
	private $CI;
	
	public function __construct() {
		$this->CI = &get_instance();
		$this->CI->load->model('Report_Model', 'reportmodel');
	}
	
	public function generate_recievers_report($start, $end) {
		$result = array();
		while ($start <= $end) {
			$result[$start] = $this->CI->reportmodel->generate_recievers_report($start);
			$start += 1;
		}
		return $result;
	}
	
	public function generate_registrants_report($start, $end) {
		$result = array();
		while ($start <= $end) {
			$result[$start] = $this->CI->reportmodel->generate_registrants_report($start);
			$start += 1;
		}
		return $result;
	}
	
	public function generate_current_registrants() {
		return $this->CI->reportmodel->generate_current_registrants();
	}
}